package com.youlai.boot.modules.policy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.modules.policy.model.Policy;
import com.youlai.boot.modules.policy.model.PolicyDetailVO;
import com.youlai.boot.modules.policy.model.PolicyForm;
import com.youlai.boot.modules.policy.model.PolicyVO;
import com.youlai.boot.modules.policy.model.PolicyPageQuery;

public interface PolicyService extends IService<Policy> {
    Page<PolicyVO> getPolicyPage(PolicyPageQuery query);

    PolicyDetailVO getPolicyById(Long id);

    Long savePolicy(PolicyForm form);

    void updatePolicy(PolicyForm form);

    boolean deletePolicy(Long id);
}